import request from '@/utils/request'

// 查询列表
export function listCreditProduct(query) {
  return request({
    url: '/productInfo/selectPage',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getCreditProduct(query) {
  return request({
    url: '/productInfo/getDetail',
    method: 'get',
    params: query
  })
}

// 新增/修改
export function addCreditProduct(data) {
  return request({
    url: '/productInfo/save',
    method: 'post',
    data: data
  })
}

// 删除
export function delCreditProduct(query) {
  return request({
    url: '/productInfo/del',
    method: 'get',
    params: query
  })
}
